package com.class05.controller;


import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ExceptionTestController {

//    localhost:8080/testException
    @GetMapping("/testException")
    public String testException(){
        int a = 1/0;
        return "success";
    }
}
